import { defineComponent } from "vue";
import './block.scss'

export default defineComponent({
  name: 'Block',
  props: {
    title: {
      type: String,
      required: true
    }
  },
  setup(props, { slots }) {
    return () => (
      <div className="block">
        <div className="block-title">
          { props.title }
        </div>
        <div className="block-context">
          { slots }
        </div>
      </div>
    )
  }
})